<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
<%@ taglib uri="/WEB-INF/lib/mentawai.jar" prefix="mtw"%> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<%@page import="java.io.PrintWriter"%><html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<title>Controle de Perfil</title>
	</head>
	
	<body>
		<form action="perfil">
			
			<jsp:useBean id="perfilVO" class="br.project.cdd.vo.PerfilVO" scope="request" />
			<jsp:useBean id="telaVO" class="br.project.cdd.vo.TelasVO" scope="request" />
			<jsp:useBean id="perfilBean" class="br.project.cdd.bean.PerfilBean" scope="request" />
			<jsp:useBean id="telaBean" class="br.project.cdd.bean.TelasBean" scope="request" />
			
			<table>
				<tr>
					<td>Perfil:<br/><br/><br/></td>
					<td>
						<select name="ddlPerfil">
							<c:forEach var="perfilBean" items="${perfilVO.todosPerfis}" >
								<option value="${perfilBean.id_perfil}" >${perfilBean.dsc_perfil}</option>
							</c:forEach>
						</select>
						<br/><br/><br/>
					</td>
				</tr>
			</table>
			
			<table>
				<tr>	
					<td>Telas:</td>
				</tr>
				<c:forEach var="telaBean" items="${telaVO.todasTelas}" >
					<tr>
						<td>
							<input name="ckbTela${telaBean.id_tela}" type="checkbox"  value="${telaBean.id_tela}">
								<c:out value="${telaBean.dsc_tela}" />
							</input>
						</td>
					</tr>
				</c:forEach>
				<tr></tr>
				<tr></tr>
				<tr>
					<td colspan="2">
						<center><input id="btnEnviar" type="submit" value="Salvar" /></center>
					</td>
				</tr>
			</table>
			
		</form>
	</body>
</html>